idCard = input('请输入身份证号码：')
genderFlag = int(idCard[-2])
if genderFlag % 2:
    print('男')
else:
    print('女')